<div class="witness_list" ng-controller="witness_listCtrl as vm">
    <div class="list" data-ng-repeat="item in vm.data.list">
        <div class="top">
            <div class="title">
                <div class="left">
                    <img data-ng-if="!item.avatar" src="../../img/home/chenyifaer.jpg" alt="">
                    <img data-ng-if="item.avatar" ng-src="{{item.avatar}}" alt="">
                    <div class="text">
                        <div class="name">{{item.nickname}}</div>
                        <div class="date">{{item.create_time}}</div>
                    </div>
                </div>
                <div class="right">
                    <img data-ng-if="item.status==1" src="../../img/home/success_handle.png" alt="">
                    <div data-ng-if="item.status==0&&item.examine==1" class="invite_button" data-ng-click="vm.alert=!vm.alert;vm.button1(item.id,item.nickname,item.desc)">邀请见证</div>
                    <div data-ng-if="item.status==0&&item.examine==2" class="invite_button" style="background-color: #ff0036;">审核失败</div>
                    <div data-ng-if="item.status==0&&item.examine==0" class="invite_button">待审核</div>
                </div>
            </div>
            <div class="content" data-ng-if="item.examine==2">
                <span>{{item.audit_desc}}</span>
                <div style="display: inline-block;vertical-align: middle"><img data-ng-click="vm.delete(item.id,$index)" src="../../img/home/cancel.png" alt=""><span style="color: #00a95e;">删除</span></div>

            </div>
            <div class="content">
                {{item.desc}}
            </div>
            <div class="img_list">
                <img data-ng-repeat="img in item.imgs" data-ng-click="vm.openImg(img,item.imgs)" src="{{img}}" alt="">
            </div>
        </div>
        <div class="bottom">
            <div class="left">见证人数<span>{{item.num}}人</span></div>
            <div class="right" data-ng-show="item.people.length">
                <img class="sub_header_img" data-ng-repeat="img in item.people" ng-src="{{img.avatar}}" alt="">
                <img class="arrow_right" src="../../img/home/arrow_right.png" alt="">
            </div>
        </div>
    </div>
    <div style="text-align: center" data-ng-if="vm.data.list.length==0">暂无数据</div>
    <div class="add-button" data-ng-click="vm.go_invite_edit()">
        发起新见证
    </div>
    <div class="invite_alert" data-ng-if="vm.alert" data-ng-click="vm.alert=!vm.alert">
        <div class="alert_content">
            <div class="invite_title">邀请朋友见证</div>
            <div class="invite_means">满5人帮你见证算成功</div>
            <div class="invite_means">成功见证加2分</div>
            <div class="alert_button" data-ng-click="vm.button2()">点击邀请</div>
        </div>
    </div>
</div>